{% extends "tcms_base.html" %}
{% load static %}
{% block subtitle %}Overall report{% endblock %}

{% block custom_stylesheet %}
<link rel="stylesheet" type="text/css" href="{% static 'style/print.css' %}" media="print" />
{% endblock %}

{% block custom_javascript %}
<script type="text/javascript" src="{% static 'js/report.js' %}"></script>
<script type="text/javascript">
Nitrate.Utils.after_page_load(Nitrate.Report.List.on_load);
</script>
{% endblock %}

{% block contents %}
<div id="content">
	<div class="Detailform border-1">
		<table class="list" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<th>Product</th>
				<th>Plans</th>
				<th>Runs</th>
				<th>Cases</th>
			</tr>
			{% for product in products %}
			<tr class="{% cycle 'even' 'odd' %}">
				<td>
					{% if product.plans_count %}
					<a href="{% url "report-overview" product.id %}">{{ product }}</a>
					{% else %}
					{{ product }}
					{% endif %}
				</td>
				<td>{{ product.plans_count }}</td>
				<td>{{ product.runs_count }}</td>
				<td>{{ product.cases_count }}</td>
			</tr>
			{% endfor %}
		</table>
	</div>
</div><!--content over -->
{% endblock %}
